package chapter3.annBean;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import chapter3.annBean.User;
import chapter3.annBean.UserService;
@Controller
public class UserController {
	@Resource
	public UserService userService;
	public void addUser(User user){
		System.out.println("===2.这是业务逻辑层");
		userService.addUser(user);
	}
}
